import { http } from '@/utils/http'

// 新增
export const appAdd = (data?: object) => {
  return http.request('post', '/app/app', { data })
}
// 编辑
export const costMgtUpdate = (data?: object) => {
  return http.request('post', '/app/update', { data })
}

// 列表
export const getList = (params?: object) => {
  return http.get<{}, HttpPaginationResponse>('/manage/apiLog/apiLogs', { params })
}

// 新增log
export const addLog = (data: object) => {
  return http.post<{}, HttpPaginationResponse>('/manage/apiLog/apiLog', { data: data })
}
// 详情信息
export const getAppDetail = (params?: number) => {
  return http.request('get', `/app/${params}`)
  // return http.request<ApifoxModel>("delete", `/pm/report/${params}`);
}
// 删除
export const deleteApp = (params?: object) => {
  return http.request('delete', `/app/${params}`)
}
// 部门列表
export const getDeptList = (params?: object) => {
  return http.request('get', '/system/dept/list', { params })
}
